import VueRouter from "vue-router";

import HomeApp from "@/components/HomeApp";
import LoginApp from "@/components/LoginApp";

import JH from "@/components/JH.vue";
import RegApp from "@/components/RegApp.vue";
export default new VueRouter({
    // mode: 'history',
    base: 'note',
    routes:[

        {
            path:"/home",
            component:HomeApp,
            children:[
                // {
                //     path:"/word",
                //     component:WordTable,
                //     name:"word"
                //
                // }, {
                //     //路径
                //     path:"/note",
                //     //路径匹配的组件
                //     component:UserNote,
                //     name:"note"
                // },
                {
                    path:"/JH",
                    //路径匹配的组件
                    component:JH,
                    name:"JH"
                }
            ]
        },
        {
            path:"/",
            component:LoginApp
        },{
            path:"/reg",
            component:RegApp
        }

    ]
})